package com.csjbot.blackgaga.util;

/**
 * Created by xiasuhuei321 on 2017/8/14.
 * author:luo
 * e-mail:xiasuhuei321@163.com
 */

public class SharedKey {
    /**
     * 各种key
     */
    public static final String PRODUCT_INFO = "product_info";

    /**
     * sp的name
     */
    public static final String PRODUCT_SP = "product_sp";

    /**
     * menu列表的名字
     */
    public static class MENU_LAN{
        public static final String PRODUCT_SP_CN = "product_sp_cn";

        public static final String PRODUCT_SP_JP = "product_sp_jp";

        public static final String PRODUCT_SP_EN = "product_sp_en";

        public static String getLanguageStr(String lan){
            String name = PRODUCT_SP_CN;
            switch (lan){
                case "cn":
                    name =  PRODUCT_SP_CN;
                    break;
                case "en":
                    name = PRODUCT_SP_JP;
                    break;
                case "jp":
                    name = PRODUCT_SP_EN;
                    break;
            }
            return name;
        }
    }

    /**
     * menu列表的名字
     */

    public static final String PRODUCT_MENU_LIST = "product_list";

    public static class SP_LAN{
        public static final String PRODUCT_MENU_CN = "product_menu_cn";

        public static final String PRODUCT_MENU_EN = "product_menu_en";

        public static final String PRODUCT_MENU_JP= "product_menu_jp";

        public static String getLanguageStr(String lan){
            String name = PRODUCT_MENU_CN;
            switch (lan){
                case "cn":
                    name =  PRODUCT_MENU_CN;
                    break;
                case "en":
                    name = PRODUCT_MENU_EN;
                    break;
                case "jp":
                    name = PRODUCT_MENU_JP;
                    break;
            }
            return name;
        }
    }


    /**
     * apk 信息的配置文件名
     */
    public static final String APK_INFO = "apk_info";

    /**
     * apk md5存储键值
     */
    public static final String APK_MD5 = "apk_md5";

    public static final String NAVI_KEY = "NAVI_KEY";
    public static final String NAVI_NAME = "NAVI_NAME";
    public static final String YINGBIN_KEY = "YINGBIN_KEY";
    public static final String YINGBIN_NAME = "YINGBIN_NAME";
    public static final String GUIDE_KEY = "GUIDE_KEY";
    public static final String GUIDE_NAME = "GUIDE_NAME";
    public static final String SPEED_KEY = "SPEED_KEY";//系统设置速度
    public static final String SPEED_NAME = "SPEED_NAME";
    public static final String ELECTRICQUANTITY_NAME = "ELECTRICQUANTITY_NAME";//电量设置
    public static String DEFAULT_ADRESS = "DEFAULT_ADRESS";//阿里云
    public static String TEST_ADRESS = "TEST_ADRESS";//测试地址
    public static final String LANGUAGEMODE_KEY= "LANGUAGEMODE_KEY";
    public static final String LANGUAGEMODE_NAME= "LANGUAGEMODE_NAME";
    public static final String VOICEKEY= "VOICEKEY";
    public static final String VOICENAME= "VOICENAME";

    /**
     * 电量保存的名字
     */
    public static final String CHARGING_NAME= "CHARGING";
    public static final String IS_CHARGING = "IS_CHARGING";
    public static final String CHARGING_INFOR = "CHARGING_INFOR";

    // 导航地图图片路径
    public static final String MAP_PATH = "MAP_PATH";
    // 默认logo
    public static final String LOGO = "logo";
    // logo url
    public static final String LOGOURL = "logourl";
    //开机自启动
    public static final String ISLOADMAP= "ISLOADMAP";
}
